package com.leyou.test1.demo;

public class Demo3 {
    public static void main(String[] args) {
        double random = Math.random();
        System.out.println(random);
        String s="";
        s+=(char)(random*('9'-'0')+'0');
        System.out.println(s);
        String s1="";
        s1+=(char)(random*('z'-'a')+'a');
        System.out.println(s1);
        System.out.println('9'-'0');
        System.out.println('z'-'a');
        System.out.println(('z'-'a'));
    }
}
